<?php
// +----------------------------------------------------------------------
// | ZGUAN [ 致力于帮助更多的中小企业实现低成本数字化转型 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~2024 https://www.zguan.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ZGUAN 并不是自由软件，未经许可不能去掉ZGUAN 相关版权
// +----------------------------------------------------------------------
// | Author: ZGUAN Team <admin@zguan.cn>  0769-82282996  15899929162
// +----------------------------------------------------------------------
namespace app\validate\property\users;

use think\Validate;

class LoginValidate extends Validate
{
    protected $rule = [
        'username|登录账号' => 'require',
        'password|登录密码' => 'require',
        'verify_code|验证码' => 'require|captcha',
    ];
    protected $scene = [
        'login' => ['username', 'password'],
        'captchalogin' => ['username', 'password', 'verify_code']
    ];
}